package com.huqing.icu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huqing.icu.dto.HouseDto;
import com.huqing.icu.dto.HouseQueryDto;
import com.huqing.icu.model.House;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HouseMapper extends BaseMapper<House> {


    House selectOneByUserId(@Param("userId") Long userId, @Param("id") Long id, @Param("isDeleted") Integer isDeleted);
    Integer getNumByCondition(HouseQueryDto queryDto);

    List<HouseDto> selectByCondition(HouseQueryDto queryDto);

    Integer updateStatus(@Param("id") Long id, @Param("userId") Long userId, @Param("status") Integer status);
}
